package com.zp.business.service.register;

import com.zp.business.entity.register.RegistrationItem;
import com.zp.business.entity.register.bo.RegistrationItemBo;
import com.zp.business.entity.register.vo.RegistrationItemVo;
import com.zp.common.myBatis.core.page.PageQuery;
import com.zp.common.myBatis.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 挂号明细Service接口
 *
 * @author zhang peng
 * @ date 2023-12-23
 */
public interface IRegistrationItemService {

    /**
     * 查询挂号明细
     */
    RegistrationItemVo queryById (String id);

    /**
     * 查询挂号明细列表(分页)
     */
    TableDataInfo<RegistrationItemVo> queryPageList (RegistrationItemBo bo, PageQuery pageQuery);

    /**
     * 查询挂号明细列表(不分页)
     */
    List<RegistrationItemVo> queryList (RegistrationItemBo bo);

    /**
     * 修改挂号明细
     */
    Boolean insertByBo (RegistrationItemBo bo);

    /**
     * 修改挂号明细
     */
    Boolean updateByBo (RegistrationItemBo bo);

    /**
     * 校验并批量删除挂号明细信息
     */
    Boolean deleteWithValidByIds (Collection<String> ids, Boolean isValid);

    Boolean insetBatch (List<RegistrationItem> list);
}
